package de.szut.gui.language;

import de.szut.gui.components.HoverLabel;

public class TranslatableHoverLabel extends HoverLabel implements TranslatableComponent {

	private static final long serialVersionUID = -9072318966250805453L;

	private String key;
	
	@Override
	public void translate(String translation) {
		setText(translation);
	}

	@Override
	public String getTranslation() {
		return getText();
	}

	@Override
	public String getTranslationKey() {
		return key;
	}

	@Override
	public void setTranslationKey(String key) {
		this.key = key;
	}

}
